package com.hclc.entity.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hclc.entity.model.series.CustomLocalDateTimeSerializer;
import com.hclc.entity.model.series.DeCustomLocalDateTimeSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>短信模板表</p>
 * @author hef
 * @since 2020-08-10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@Accessors(chain = true)
@TableName("`t_base_sms_template`")
public class BaseSmsTemplateModel implements Serializable {

	private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value="`id`", type= IdType.ASSIGN_ID)
	@ApiModelProperty(value = "主键")
    private String id;

    /**
     * 模板名称
     */
    @TableField(value = "`template_code`")
	@ApiModelProperty(value = "模板名称")
    private String templateCode;

    /**
     * 模板类型
     */
    @TableField(value = "`template_type`")
	@ApiModelProperty(value = "模板类型")
    private String templateType;

    /**
     * 模板内容
     */
    @TableField(value = "`send_content`")
	@ApiModelProperty(value = "模板内容")
    private String sendContent;

    /**
     * 模板（惠佳易）
     */
    @TableField(value = "`template`")
	@ApiModelProperty(value = "模板（惠佳易）")
    private String template;

    /**
     * 是否有效(1:有效,0:无效)
     */
    @TableField(value = "`enable`")
	@ApiModelProperty(value = "是否有效(1:有效,0:无效)")
    private Integer enable;

    /**
     * 备注
     */
    @TableField(value = "`remark`")
	@ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 状态
     */
    @TableField(value = "`status`")
	@ApiModelProperty(value = "状态")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "`create_time`", fill = FieldFill.INSERT)
	@ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = DeCustomLocalDateTimeSerializer.class)
    @JsonSerialize(using = CustomLocalDateTimeSerializer.class)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "`update_time`", fill = FieldFill.INSERT_UPDATE)
	@ApiModelProperty(value = "更新时间")
    @JsonDeserialize(using = DeCustomLocalDateTimeSerializer.class)
    @JsonSerialize(using = CustomLocalDateTimeSerializer.class)
    private LocalDateTime updateTime;

    /**
     * 创建时间(时间戳)
     */
    @TableField(value = "`create_time_timestamp`", fill = FieldFill.INSERT)
	@ApiModelProperty(value = "创建时间(时间戳)")
    private Long createTimeTimestamp;

    /**
     * 更新时间(时间戳)
     */
    @TableField(value = "`update_time_timestamp`", fill = FieldFill.INSERT_UPDATE)
	@ApiModelProperty(value = "更新时间(时间戳)")
    private Long updateTimeTimestamp;


}
